<template>
  <div class="home">
    <tab />
    <list />
  </div>
</template>

<script>
import tab from "../components/Tab";
import list from "../components/List";
export default {
  mounted() {
    this.$axios.get("data.json").then((res) => {
      console.log(res);
      this.$store.commit("setlist", res.data.goods);
    });
  },
  components: {
    tab,
    list,
  },
};
</script>
